<?php



namespace app\common\validate;


class ApiValidate extends BaseValidate
{
    // 验证规则
    protected $rule = [
        //'sitename'      => 'require',
        //'domain'        => 'require',
        //'secretkey'     => 'require',
        'time'          => 'require',
        'daily'         => 'require'
    ];

    // 验证提示
    protected $message = [
        //'sitename.require'      => '站点不能为空',
        //'domain.require'        => '域名不能为空',
        //'secretkey.require'     => '公钥不能为空',
        'time.require'          => '限制不能为空',
        'daily.require'         => '日限不能为空',
    ];

    // 应用场景
    protected $scene = [
        'edit'      =>  ['secretkey']
    ];

}